package com.lingshi.shopping.service;

import com.lingshi.shopping.entity.Orders;
import com.lingshi.shopping.entity.Payment;
import jakarta.servlet.http.HttpServletRequest;

import java.util.Map;

public interface ZfbPayService {
    /**
     * 生成二维码
     * @param orders 订单对象
     * @return 二维码字符串
     */
    String pcPay(Orders orders);


    /**
     * 验签
     * @param params 支付宝回调请求对象
     */
    boolean checkSign(Map<String,String> params);


    /**
     * 修改订单状态并保存交易记录
     * @param params
     */
    void updateOrderStatus(Map<String,String> params);

}
